<?php 
include "../db.php";
$conn=mysql_connect($dbip,$dbuser,$dbpass)or dir('連接服務器失敗:'. mysql_error());
if(mysql_select_db($dbname,$conn)){
echo "";
}else{echo ('連接資料庫失敗:'. mysql_error());}
mysql_query("set names utf-8");


  if (isset($_GET['page']))
{
      $page=intval($_GET['page']);
}
else{
       
      $page=1;
}


 function make_safe($variable) {
$variable = addslashes(trim($variable));
return $variable;
// $username = make_safe($_POST['username']);
}



function unhtml($content)
 {
    $content=htmlspecialchars($content);
    $content=str_replace(chr(13),"<br>",$content);
    $content=str_replace(chr(32),"&nbsp;",$content);
   return trim($content);
 }
 
?>
